import cv2
import os
def pre_process(data_path):
    file_name = os.path.split(data_path)[1].split('.')[0]
    return data_path, file_name

def test(path):
    img=cv2.imread(path)
    imgf=cv2.flip(img,1)
    dic={'p1':1,'p2':2,'p3':3,'p4':4,'k':'1'}
    return imgf,dic

def tw(path):
    img = cv2.imread(path)
    imgf = cv2.flip(img, 1)
    dic = {'p1': '无', 'p2': '有', 'p3': '无', 'p4': '有', 'p5': '无','p6': '有'}
    return imgf, dic